package org.sanchez.corcoles.ana.pruebasconcepto.Server;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * Created by Administrator on 2018/2/6.
 */
@Component
public class RabbitMqServer {

    private static final String QUEUENAME = "test_rabbit";

    @RabbitListener(queues = QUEUENAME) //Leer
    public void consumirMensaje(String mensaje){
        System.out.println("server: "+mensaje);
    }
}
